<template>
    <div class="person">
        <h2>当前求和为：{{ sum }}</h2>
    </div>
</template>

<script lang="ts" setup>
    import { ref } from 'vue';
    let sum = ref(0)
    let a = ref('a')
    defineExpose({sum, a})
</script>

<style scoped>
.person {
    background-color: skyblue;
    box-shadow: 0 0 10px;
    border-radius: 10px;
    padding: 20px;
}
</style>